

<?php include_once __DIR__.'/../inc/head.html';?>
<div class="happer articl w1200">
	<!--菜单栏-->
	<div class="menu">
		<ul>
			<li class='in' ><a href='/article/lists'>商城快报</a></li>
		</ul>
	</div>
	<!--菜单栏-->
	<!--内容-->
	<div class="container">
		<!--盒子内容显示在w800里面-->
		<div class="w800">
			<ul>
				<?php foreach($article_list as $key => $value):?>
					<li>
						<p class="top"><a href="/article/detail1?id=<?=$value['id']?>"><?=$value['title']?></a></p>
						<p class="down"><span>发布时间：<?=date('Y-m-d H:i:s',$value['create_time'])?></span></p>
					</li>
				<?php endforeach;?>
			</ul>
        </div>
		<!--分页-->
		<div class="plan_pager fr">
		  <div class="pageing" id='page'>
		  </div>
		</div>
		<!--分页-->
	</div>
	<!--内容-->
</div>
<script>
layui.use(['laypage'], function(){
    var laypage = layui.laypage;
    //总页数大于页码总数
    laypage.render({
      elem: 'page'
      ,count:<?=$page_count?>  //数据总数
      ,curr:<?=$page?>
      ,limit:10
      ,jump: function(obj,first){
        //首次不执行
        if(!first){
            var o = GetRequest();
                o.page = obj.curr;
                o.url  = '/article/lists';
            window.location.href = createUrl(o);
        }
      }
    });
});
</script>
<?php include_once __DIR__.'/../inc/foot.html';?>
